home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20021006-20030409
/
000307_fdc@columbia.edu_Fri Feb 14 10:07:00 EST 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
46 lines
Article: 14103 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Dealing with '\' char in strings of file locations
Date: 14 Feb 2003 10:06:49 -0500
Organization: Columbia University
Lines: 29
Message-ID: <b2j0m9$i09$1@watsol.cc.columbia.edu>
References: <a70f50e.0302121525.7922c8c3@posting.google.com> <a70f50e.0302131451.4fe831f@posting.google.com> <b2h8jd$dp7$1@watsol.cc.columbia.edu> <b2i0it$lfs$1@newsmaster.cc.columbia.edu>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1045235210 3936 128.59.39.139 (14 Feb 2003 15:06:50 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 14 Feb 2003 15:06:50 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14103
In article <b2i0it$lfs$1@newsmaster.cc.columbia.edu>,
Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
: The hostname portion of the UNC path must use backslashes. They cannot be
: replaced with forward slashes. When command quoting is ON, you must
: represent it as
:
: \\\\hostname\\dir\\subdir\\file.txt
:
: or
:
: \\\\hostname\\dir/subdir/file.txt
:
Right.
To clarify: the slash reversal was only to simplify subsequent string
manipulation, in this case extraction of the subdirectory and filename
>from the UNC. (Exercise for the reader: try it without reversing the
slashes :-)
If you wanted to actually use a UNC you had read from a file (e.g. into
a macro variable called "line"), you would do:
assign unc \freplace(\m(line),\\,\\\\)
This would give:
\\\\hostname\\dir\\subdir\\file.txt
- Frank